package com.property.demo.service;

import com.property.demo.model.Complaint;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Optional;

public interface ComplaintService {

    List<Complaint> findAll();
    
    Page<Complaint> findAll(Pageable pageable);
    
    Page<Complaint> findByFilters(Long ownerId, String title, String status, String type, Pageable pageable);
    
    Optional<Complaint> findById(Long id);
    
    Complaint save(Complaint complaint);
    
    Complaint update(Long id, Complaint complaintDetails);
    
    void delete(Long id);
    
    void deleteAll(List<Long> ids);
    
    List<Complaint> findByOwnerId(Long ownerId);
    
    List<Complaint> findByStatus(String status);
    
    List<Complaint> findByType(String type);
} 